<template>
  <div>
    <uni-forms :label-width="130" class="form">
      <uni-title :title="parseTime(plan.planTime,'{y}-{m}-{d}')" type="h1"></uni-title>
      <uni-row >
        <uni-col :xs="24" :sm="12">
          <uni-forms-item label-align="right" label="换料数量 : " required>
            <uni-title :title="plan.changeNum / 10000 + ''"></uni-title>
          </uni-forms-item>
        </uni-col>
        <uni-col :xs="24" :sm="12">
          <uni-forms-item name="bugType" label-align="right" label="进虫数量 : " required>
            <uni-title :title="plan.insertNum / 10000 + ''"></uni-title>
          </uni-forms-item>
        </uni-col>
        <uni-col :xs="24" :sm="12">
          <uni-forms-item label-align="right" label="剩余数量 : " required>
            <uni-title :title="plan.residue / 10000 + ''"></uni-title>
          </uni-forms-item>
        </uni-col>
        <uni-col :xs="24" :sm="12">
          <uni-forms-item label-align="right" label="投入人员 : " required>
            <uni-title :title="plan.inputStaff"></uni-title>
          </uni-forms-item>
        </uni-col>
        <uni-col :xs="24" :sm="12">
          <uni-forms-item label-align="right" label="轮休人员 : " required>
            <uni-title :title="plan.rotationStaff"></uni-title>
          </uni-forms-item>
        </uni-col>
        <uni-col :xs="24" :sm="12">
          <uni-forms-item label-align="right" label="S-01装盘数薄棉 : " required>
            <uni-title :title="plan.sCottonNum"></uni-title>
          </uni-forms-item>
        </uni-col>
        <uni-col :xs="24" :sm="12">
          <uni-forms-item label-align="right" label="S-01装盘数厚棉 : " required>
            <uni-title :title="plan.lCottonNum"></uni-title>
          </uni-forms-item>
        </uni-col>
        <uni-col :xs="24" :sm="12">
          <uni-forms-item label-align="right" label="蛹接收数 : " required>
            <uni-title :title="plan.pupaReceiveNum"></uni-title>
          </uni-forms-item>
        </uni-col>
        <uni-col :xs="24" :sm="12">
          <uni-forms-item label-align="right" label="僵虫接收数 : " required>
            <uni-title :title="plan.staffReceiveNum / 10000 + ''"></uni-title>
          </uni-forms-item>
        </uni-col>
        <uni-col :xs="24" :sm="12">
          <uni-forms-item label-align="right" label="预估跨车间转虫 : " required>
            <uni-title :title="plan.estimateTransformNum / 10000 + ''"></uni-title>
          </uni-forms-item>
        </uni-col>
        <uni-col :xs="24" :sm="12">
          <uni-forms-item label-align="right" label="整批灭活数量 : " required>
            <uni-title :title="plan.entireKillNum / 10000 + ''"></uni-title>
          </uni-forms-item>
        </uni-col>
        <uni-col :xs="24" :sm="12">
          <uni-forms-item label-align="right" label="预估单盘灭活 : " required>
            <uni-title :title="plan.estimateKillNum / 10000 + ''"></uni-title>
          </uni-forms-item>
        </uni-col>
      </uni-row>
    </uni-forms>
  </div>
</template>

<script setup lang="ts">

import {PlanFormHandle} from "../../pagesVM/plan";
import UniTitle from "../../uni_modules/uni-title/components/uni-title/uni-title.vue";
import {parseTime} from "../../util/auth";

const {plan} = PlanFormHandle()

</script>

<style scoped>
.form {
  width: 80%;
  font-size: 50px;
  margin: 30px auto 0 auto
}
</style>
